Format the javascript code#14967
Conversation
|
Hi @yogeshks , thank you for collaboration. Use javascript inside *.phtml file it's legacy code that we try to refactor according to Magento way. For that we have <script type="text/x-magento-init" /> tag, where we declare path to JS file and pass paramets if they are needed. Please make refactoring according to Magento way. |
|
Hi @VladimirZaets |
|
Hi @yogeshks , yes, you should create new JS file/component with the callback function, as example and use |
|
Hi @VladimirZaets |
|
Hi @yogeshks. Updates look good, thanks. I took your PR into processing. |
|
Hi @yogeshks. Thank you for your contribution. |
Description
Format the javascript code in the template file.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist